package com.alcargo.service.imp;

import java.sql.SQLException;
import java.util.List;

import org.apache.log4j.Logger;

import com.alcargo.dao.NouseDao;
import com.alcargo.model.db.AirWayBill;
import com.alcargo.service.NouseService;
import com.alcargo.tools.sample.PageModel;

public class NouseServiceImp implements NouseService{
	Logger	logger  = Logger.getLogger(NouseServiceImp.class);
	private NouseDao nouseDao;
	public NouseDao getNouseDao() {
		return nouseDao;
	}
	public void setNouseDao(NouseDao nouseDao) {
		this.nouseDao = nouseDao;
	}
	public List<AirWayBill> getAirWayBillByModel(AirWayBill awb, PageModel page) {
		
		return nouseDao.getListbyAWB(awb);
	}
	public AirWayBill getAirWayBillbyNo(String no) throws SQLException{
		return nouseDao.getAWBbyNo(no);
		
	}
	

}
